/**
 * 
 */
package model;

/**
 * @author Bill
 *
 */
public class HomingMissileAmmo extends Ammo {
	
	private int remainingZombosaurs = 1;	//default value
	
	//Empty Ammo 
	public HomingMissileAmmo(int zombosaurCount, Weapon weapon){
		super(weapon);
		remainingZombosaurs = zombosaurCount;
	}
	
	//Ammo with velocity and x, y, positions
	public HomingMissileAmmo(int zombosaurCount, Velocity velocity, float x, float y, Weapon weapon){
		super(velocity, x, y, weapon);
		remainingZombosaurs = zombosaurCount;
	}
	
	public void updateDirection(float x, float y){
		Velocity newVelocity = new Velocity(this.getCenterX(), this.getCenterY(), x, y, this.getVelocity().getSpeed());
		this.setVelocity(newVelocity);
	}
	
	public void decrementZombosaurCount(){
		System.out.println(remainingZombosaurs);
		remainingZombosaurs--;
	}

	public int getRemainingZombosaurs() {
		return remainingZombosaurs;
	}

	public void setRemainingZombosaurs(int remainingZombosaurs) {
		this.remainingZombosaurs = remainingZombosaurs;
	}


}
